import json
import os

projectpath = os.getcwd()
projectpath = projectpath.replace('/',"\\")
projectpath += "\\"
print("projectpath:",projectpath)

def writeToFile(item,filename):
    # 将数据写入到文件中
    file = open(filename,'w',encoding='utf-8')
    str = json.JSONEncoder().encode(item)
    file.write(str)
    file.close()

# import pickle
# file = open("data/data_clean_key_cut/591439",'rb')
# filecontext = pickle.load(file)
# print(filecontext)